class UrlMappings {

    static mappings = {

        "/timesheet/$contractorName" {
            controller = 'contractor'
            action = 'timesheets'
        }

        "/image/manager/$id" {
            controller = 'image'
            action = 'manager'
        }

        "/image/contractor/$id" {
            controller = 'image'
            action = 'contractor'
        }


        "/$controller/$action?/$id?" {
            constraints {
                // apply constraints here
            }
        }


        "/"(view: "/index")
        "500"(view: '/error')
    }
}
